<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>员工信息列表</title>
     <link rel="stylesheet" href="css/bootstrap.min.css" />

     
</head>
<body>



<div class="container">
<div align="center"><h3>员工信息列表</h3></div>

    </br>
    </br>
    </br>

    <div class="row" style="margin-bottom: 15px;">
        <div class="col-md-6"></div>
        <div class="col-md-6">
    <form action="./showList.php" class="form-inline" role="form" method="get">
    <div>
        <input type="text" class="form-control" name="keyword"/>
        <button type="submit" class="btn btn-primary" style="width: 100px">搜索</button>
    </div>


</form>
        </div>
    </div>


<table class="table table-bordered table-striped">
	<tr>
        <th><a href="./showList.php?order=e_id&sort=<?php echo($order=='e_id') ? $sort :'desc'; ?>">
                id</a></th>
        <th>姓名</th>
        <th><a href="./showList.php?order=e_dept&sort=<?php echo($order=='e_dept') ? $sort :'desc'; ?>">
                所属部门</a></th>
        <th>出生日期</th>
		<th><a href="./showList.php?order=date_of_entry&sort=<?php echo($order=='date_of_entry') ? $sort :'desc'; ?>">
                入职时间</a></th>
        <th>相关操作</th>
	</tr>
	<?php if(!empty($emp_info)){ ?>
	<?php foreach ($emp_info as $row){ ?>
<tr>
	<td><?php echo $row['e_id']; ?></td>
	<td><?php echo $row['e_name']; ?></td>
	<td><?php echo $row['e_dept']; ?></td>
	<td><?php echo $row['date_of_birth']; ?></td>
	<td><?php echo $row['date_of_entry']; ?></td>
	<td><div><span>编辑&nbsp;&nbsp;删除</span></div></td>
</tr>
    <?php }?>
	<?php } else{?>
	<tr><td colspan="6">暂无</td> </tr>
	<?php }?>

</table>


<!--	--><?php //$page_html = "<a href='./showList.php?page=1'>首页</a>&nbsp;" ?>
<!--	--><?php //$page_html .= "<a href='./showList.php?page=".(($page -1)>0?($page -1):1)."'>上一页</a>&nbsp;" ?>
<!--	--><?php //$page_html .= "<a href='./showList.php?page=".(($page -1)< $max_page ? ($page+1):$max_page)."'>下一页</a>&nbsp;" ?>
<!--    --><?php //$page_html .= "<a href='./showList.php?page={$max_page}'>尾页</a>";?>
<!--    --><?php //$lim=($page -1)*2;?>
    <ul class="pager">
        <li><a href="index.php?<?php echo $firstpage?>">首页</a></li>
        <li><a href="index.php?<?php echo $Previous;?>">上一页</a></li>
        <li><a href="index.php?<?php echo $nextpage;?>">下一页</a></li>
        <li><a href="#">尾页</a></li>
    </ul>



</div>
<?php mysql_close ( $lian );  ?>
<script type="text/javascript" src="js/bootstrap.min.js" ></script>
</body>
</html>
